package com.yx.outSourcing.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.yx.outSourcing.enums.AppStatus;
import com.yx.outSourcing.enums.PersonStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 外协人员信息表
 * </p>
 *
 * @author zcc
 * @since 2025-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("outsourcing_person")
@ApiModel(value="OutsourcingPerson对象", description="外协人员信息表")
public class OutsourcingPerson implements Serializable {



    @ApiModelProperty(value = "人员ID")
    @TableId(value = "per_id", type = IdType.AUTO)
    private Long perId;

    @ApiModelProperty(value = "所属申请单ID")
    private Long appId;

    @ApiModelProperty(value = "姓名")
    private String userName;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "联系方式")
    private String userPhone;

    @ApiModelProperty(value = "IC卡编号")
    private String icNo;

    @ApiModelProperty(value = "进厂时间")
    private LocalDateTime entryTime;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "身份证正面照片")
    private String idCardFront;

    @ApiModelProperty(value = "身份证反面照片")
    private String idCardBack;

    @ApiModelProperty(value = "2寸免冠照片")
    private String portraitPhoto;

    @ApiModelProperty(value = "状态（1-正常，0-失效）")
    private PersonStatus status;

    @ApiModelProperty(value = "新增时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改日期")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "新增人员")
    private String createdBy;

    @ApiModelProperty(value = "修改人员")
    private String updatedBy;


}
